﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WFL.Threading
{
    public class LogEventArgs : EventArgs
    {
        public string Text
        {
            get;
            private set;
        }

        public Exception Exception
        {
            get;
            private set;
        }

        public LogEventArgs(string text)
        {
            Text = text;
        }

        public LogEventArgs(Exception exception)
        {
            Exception = exception;
        }
    }

    public delegate void LogEventHandler(object sender, LogEventArgs e);
}
